/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package utfpr.cp.model;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 *
 * @author Adriano_2
 */
@Entity
public class ResourceTriple implements Serializable {
    private static long serialVersionUID = 1L;

    @Id
    @GeneratedValue
    private Long id;
    
    @ManyToOne()
    private URLData url;
    
    @Column(length = 1000)
    private String subject;
    
    @ManyToOne()
    private Predicate predicate;
    
    @Column(length = 1000)
    private String objectValue;

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @return the url
     */
    public URLData getUrl() {
        return url;
    }

    /**
     * @param url the url to set
     */
    public void setUrl(URLData url) {
        this.url = url;
    }

    /**
     * @return the subject
     */
    public String getSubject() {
        return subject;
    }

    /**
     * @param subject the subject to set
     */
    public void setSubject(String subject) {
        this.subject = subject;
    }

    /**
     * @return the predicate
     */
    public Predicate getPredicate() {
        return predicate;
    }

    /**
     * @param predicate the predicate to set
     */
    public void setPredicate(Predicate predicate) {
        this.predicate = predicate;
    }

    /**
     * @return the objectValue
     */
    public String getObject() {
        return objectValue;
    }

    /**
     * @param objectValue the objectValue to set
     */
    public void setObject(String objectValue) {
        this.objectValue = objectValue;
    }
}
